package cn.jlkj2012.csmall.product.teacher.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "01. 类别管理模块")
@Slf4j
@RestController
@RequestMapping("/categories")
public class CategoryController {
    @ApiOperation("添加类别")
    @PostMapping("/add-new")
    public void addNew(){

    }
    @ApiOperation("删除类别")
    @ApiOperationSupport(order = 200)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "类别ID", required = true, dataType = "long"),
            @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "long")
    })
    @PostMapping("/delete")
    public void delete(Long userId, Long id){

    }
    @ApiOperation("修改类别")
    @PostMapping("/update")
    public void update(){

    }
    @ApiOperation("查询类别")
    @PostMapping("/list")
    public void list(){

    }
}
